<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ page import="fy.bean.*,java.util.*,java.io.*" %>  
<%
request.setCharacterEncoding("utf-8");

int id = Integer.parseInt(request.getParameter("id"));

int puton = Integer.parseInt(request.getParameter("puton"));


WsmbBean wsmbBean = new WsmbBean();
if(wsmbBean.doUpdata(puton,id)){
	PrintWriter pout = response.getWriter();
	pout.print("<script>alert('修改成功'); window.location='../content.jsp' </script>");
	pout.flush();
	pout.close();
}else{
	response.setCharacterEncoding("utf-8");
	PrintWriter pout = response.getWriter();
	pout.print("flase");
	pout.flush();
	pout.close();
	//response.sendRedirect("login.html");
};

%>    
